<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jd.ty.pojo" >
	<class name="Order" table="BUS_ORDER" schema="TYMS">
		<id name="orderId" type="java.lang.Long">
			<column name="ORDER_ID" precision="10" scale="0" />
			<generator class="identity">
			</generator>
		</id>
		<property name="orderStatus" type="java.lang.Byte">
			<column name="ORDER_STATUS" length="1" not-null="true"
				default="0" />
		</property>
		<property name="proCost" type="java.lang.Double">
			<column name="PRO_COST" not-null="false" />
		</property>
		<property name="custRemitDate" type="timestamp">
			<column name="CUST_REMIT_DATE" not-null="false" />
		</property>
		<property name="gettingFundDate" type="timestamp">
			<column name="GETTING_FUND_DATE" />
		</property>
		<property name="invoiceContents" type="java.lang.String">
			<column name="INVOICE_CONTENTS" length="200" />
		</property>
		<property name="invoiceDate" type="timestamp">
			<column name="INVOICE_DATE" />
		</property>
		<property name="hotelComments" type="java.lang.String"
			column="HOTEL_COMMENTS" length="200" />
		<property name="hotelExpense" type="java.lang.Double"
			column="HOTEL_EXPENSE" not-null="true" />
		<property name="isEditable" type="boolean">
			<column name="EDITABLE" length="1" not-null="true"
				default="0" />
		</property>
		<property name="isDeletable" type="boolean">
			<column name="DELETABLE" length="1" not-null="true"
				default="0" />
		</property>
		<many-to-one name="employee" class="Employee" fetch="select" lazy="false">
			<column name="EMPLOYEE_ID" precision="10" scale="0"
				not-null="true" />
		</many-to-one>
		<many-to-one name="customer" class="Customer" fetch="select" lazy="false">
			<column name="CUSTOMER_ID" precision="10" scale="0"
				not-null="true" />
		</many-to-one>
	</class>
</hibernate-mapping>
